package com.c8a.nacos.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Program: springcloud2022
 * @Description: ApplicationContextConfig
 * @Author: c8a
 * @Email: 1912327276@qq.com
 * @Create: 2022-05-15 00:54
 **/


@Configuration
public class ApplicationContextConfig {
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }
}
